package cn.itsource.org.service;

import cn.itsource.basic.service.IBaseService;
import cn.itsource.basic.util.AjaxResult;
import cn.itsource.org.domain.User;
import cn.itsource.org.query.UserQuery;

import javax.servlet.http.HttpServletRequest;

public interface IUserService extends IBaseService<User, UserQuery> {

    //基础的方法由继承得到

    AjaxResult checkPhone(String phone);

    AjaxResult sendMobileCode(String phone, HttpServletRequest request);

    AjaxResult registerUser(User user);

    AjaxResult login(User user);
}
